# -*- coding: utf-8 -*-
# @Time    : 2021/4/22 0022 21:27
# @Author  : 蒋才果
# @Email   : 1476235300@qq.com
# @File    : 爬虫图片.py
# @Software: PyCharm
# import re
# import requests
# result = requests.get("https://www.sanchuangedu.cn/")
# ret = re.findall(r"(?<=img\ssrc=\").*(?=\"\salt)",result.text)
# a = 0
# for i in ret:
#     picture = requests.get("https://www.sanchuangedu.cn"+i)
#     with open(f"picture{a}.jpg","ab") as f:
#         f.write(picture.content)
#         a += 1
#         print(a)